﻿var app = angular.module('neatApp', [
    'ngRoute'
]);

app.config(function ($routeProvider) {
    $routeProvider.when('/', {
        templateUrl: '/app/views/HomeView.html',
        controller: 'HomeController'
    })
    .when('/profile', {
        templateUrl: '/app/views/ProfileView.html',
        controller: 'ProfileController'
    })
    .when('/messages', {
        templateUrl: '/app/views/MessagesView.html',
        controller: 'MessageController'
    })
    .when('/message', {
        templateUrl: '/app/views/MessageView.html',
        controller: 'MessageController'
    })
    .when('/create', {
        templateUrl: '/app/views/CreateMessageView.html',
        controller: 'CreateMessageController'
    })
    .otherwise({
        redirectTo: '/'
    });
})
